import logo from './logo.svg';
import './App.css';
import React from 'react'
import Myhome from './myhome/myhome';
import ReactRoute from './reactRoute/reactRoute'
import TestClass from './testClassComponent/testClass'
import RoutePage from './routePage/routePage'
import RoutePages from './routePages/routePages'
import { BrowserRouter as Router,Route} from 'react-router-dom';

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          创建的第一个react项目
        </p>
      </header>
      <Router>
        <div>
          <Route path='/Myhome' component={Myhome} />
          <h1>路由跳转</h1>
          <Route path='/' component={ReactRoute} />
          <Route path='/TestClass' component={TestClass} />
          <Route path='/RoutePage' component={RoutePage} />
          <Route path='/RoutePages' component={RoutePages} />
        </div>
      </Router>
    </div>
  );
}



export default App;
